package com.chen.constant;

/**
 * TODO
 *
 * @author shy
 * @version 1.0
 * @date 2022/5/24 16:18
 */

public class PortalConstants {

    public static final String AUTH_CODE_ERRO = "验证码错误,请重新发送!";
    
    public static final Integer DEFAULT_MEMBER_LEVEL = 4;

    public static final Integer DEFAULT_TRUE = 1;

    public static final Integer DEFAULT_FALSE = 0;
    
    public static final String DEFAULT_AVATAR = "https://shyvv-1308916267.cos.ap-chengdu.myqcloud.com/mall/80601653553338857.png";
    
    /**
     * 商品促销类型
     */
    //无优惠,原价
    public static final Integer PROMOTION_TYPE_ORIGINAL = 0;
    //使用促销价
    public static final Integer PROMOTION_TYPE_PROMOTION = 1;
    //使用会员价
    public static final Integer PROMOTION_TYPE_VIP = 2;
    //使用阶梯价格
    public static final Integer PROMOTION_TYPE_LADDER = 3;
    //使用满减价格
    public static final Integer PROMOTION_TYPE_REDUCTION = 4;
    
    //优惠券领取方式
    //后台直接赠送
    public static final Integer COUPON_GET_TYPE_GIVE = 0;
    
    //自己领取
    public static final Integer COUPON_GET_TYPE_RECEIVE = 1;
    
    /**
     * 优惠券使用类型
     */
    //全场通用
    public static final Integer COUPON_USE_TYPE_ALL = 0;
    
    //指定分类
    public static final Integer COUPON_USE_TYPE_ASSIGN_CATEGORY = 1;
    
    //指定商品
    public static final Integer COUPON_USE_TYPE_ASSIGN_PRODUCT = 2;

    public static final Long DEFAULT_INTEGRATION_RULE = 1L;
    
    /**
     * 优惠券使用状态
     */
    //未使用
    public static final Integer COUPON_USE_STATUS_UNUSED = 0;
    //已使用
    public static final Integer COUPON_USE_STATUS_USED = 1;

    
    //订单常量
    //订单来源：0->PC订单；1->app订单;2->小程序
    public static final Integer ORDER_SOURCE_TYPE_PC = 0;
    
    public static final Integer ORDER_SOURCE_TYPE_APP = 1;
    
    public static final Integer ORDER_SOURCE_TYPE_APPLET  = 2;
    
    //订单状态：0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单
    //0->待付款
    public static final Integer ORDER_SOURCE_STATUS_OBLIGATION = 0;
    //1->待发货
    public static final Integer ORDER_SOURCE_STATUS_WAITDELIVER = 1;
    //2->已发货
    public static final Integer ORDER_SOURCE_STATUS_DELIVERED = 2;
    //3->已完成
    public static final Integer ORDER_SOURCE_STATUS_FINISHED = 3;
    //4->已关闭
    public static final Integer ORDER_SOURCE_STATUS_COMPLETE = 4;
    //5->无效订单
    public static final Integer ORDER_SOURCE_STATUS_INVALID = 5;
    
    //0->正常订单
    public static final Integer ORDER_TYPE_NORMAL = 0;
    //1->秒杀订单
    public static final Integer ORDER_TYPE_SECKILL  = 1;
    
    // 0->未确认；1->已确认
    //0->未确认
    public static final Integer ORDER_UNCONFIRMED  = 0;
    //1->已确认
    public static final Integer ORDER_CONFIRM  = 1;
    
    public static final Long DEFAULT_LONG_ID = 1L;
    /**
     * 支付方式
     */
    public static final Integer ORDER_PAY_TYPE_ALIPAY = 1;
    
    
    
    



    

    
    
    
    
}
